package com.china08.yxyapi.repository.db.lectureresult;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.transaction.annotation.Transactional;

import com.china08.yxyapi.entity.db.huodong.lecture.YxyHuodongResTemp;

public interface YxyHuodongResTempRepository extends JpaRepository<YxyHuodongResTemp, String> {

    List<YxyHuodongResTemp> findByTeaIdAndSchoolId(String tid, String sid);

    YxyHuodongResTemp findByTeaIdAndSchoolIdAndType(String tid, String sid, String type);

    @Modifying
    @Transactional
    Integer deleteByAreaIdDistrict(String areaIdDistrict);

}
